<template>
	<view class="carHeader">
		<view class="slot">
			<slot>
				<uni-nav-bar @clickLeft="back" color="white" 
					:border="false" 
					background-color="rgba(255,255,255,0.0)" 
					left-icon="left" 
					:title="title">
				</uni-nav-bar>
			</slot>
		</view>
	</view>
</template>

<script>
	export default {
		name:"carHeader",
		data() {
			return {
				// title:"首页" 
			};
		},
		props:{
			title:{
				type: String,
				default:"首页"
			}
		},
		methods:{
			back() {
				uni.navigateBack();		 
			}
		}
	}
</script>

<style lang="scss">
	.carHeader{
		height: 340rpx;
		background-image: url("../../static/车联网服务商家端-00登录_slices/组 6.png");
	}
</style>